home *** CD-ROM | disk | FTP | other *** search
- Path: news.umbc.edu!not-for-mail
- From: schlein@umbc.edu (Jonas J. Schlein)
- Newsgroups: comp.lang.c
- Subject: Re: Union type
- Date: 17 Apr 1996 11:55:51 -0400
- Organization: University of Maryland Baltimore County
- Message-ID: <4l34a7$7nk@umbc9.umbc.edu>
- References: <4kh43f$h4f@dewey.csun.edu>
- NNTP-Posting-Host: umbc9.umbc.edu
- NNTP-Posting-User: schlein
-
- In article <4kh43f$h4f@dewey.csun.edu>, chen <kc44097@csun.edu> wrote:
- |> My question is : Why myUnion.integer is 1 but myUnion.floating is
- |> 0.000000;Why myUnion.integer change to 0.000000 in 4th printf(),
- |> and why myUnion.floating is 0 in 5th printf()?
-
- Maybe because integers and floating point numbers are represented differently
- internally? Why do you expect them to be the same?
- --
- "If it wasn't for C, we would be using BASI, PASAL, and OBOL."
-
- Jonas J. Schlein (schlein@gl.umbc.edu)
-